package com.homework.ch0123;

public class Test5 {
    public static void main(String[] args) {
        double totalMoney = 2.0;
        double cost = 1.1;
        double change = totalMoney - cost;

        System.out.println("应付: ￥" + totalMoney);
        System.out.println("实付: ￥" + cost);
        System.out.println("找零: ￥" + change);
        System.out.println("找零等于0.9吗? " + (change == 0.9));
    }
}
